<?php
require_once('Extension/Controller/Action.php');

/**
 * @param string $who
 * @param string $when
 * @return string
 */
function getWords($who, $when)
{
    return "Hello $who, Good $when";
}

class rest_IndexController extends Extension_Controller_Action 
{
    public function indexAction()
    {
        $this->view->layout()->disableLayout();
        $this->getHelper('viewRenderer')->setNoRender();

        $server = Kbs::initRestServer();
        echo $server->handle();
    }

}